home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 5 / CD-ROM Today - The Disc (Issue 5)(November 1994).ISO / mac / Mac shareware / Education / RLaB / misc / INSTALL < prev    next >
Encoding:
Text File  |  1994-09-21  |  12.9 KB  |  317 lines  |  [TEXT/ttxt]

  1. -----------------------------------------------------------------------
  2.  
  3.    RLaB Installation Instructions:
  4.  
  5.    To configure rlab for your platform you must:
  6.  
  7.    Make the Libraries: The libraries that are compatible with
  8.    rlab v1.0  are: rblas-1.1.tar
  9.             rlap-1.1.tar
  10.            rfft-1.2.tar    
  11.            rnlib-1.1.tar
  12.            plplot4p99[gf].tar.gz (optional)
  13.  
  14.    Each library unpacks into it's own directory. Use configure to
  15.    create the Makefile, then type `make'. `make install' to install
  16.    the library. See the README file in each library directory for
  17.    further instructions.
  18.  
  19.    1.) Unpack the rlab distribution (you have already done that :-).
  20.    2.) Type `./configure' from within the top-level rlab directory.
  21.  
  22.     2.a) Configure will recognize certain "with" options:
  23.  
  24.     --prefix=dir        Use dir as the root of the software
  25.                 installation tree.
  26.     --with-cc        Use the cc compiler
  27.     --with-gcc        Use the GNU C compiler
  28.     --with-LIBS=dir        Look for all libraries in dir 1st. If
  29.                 the bulk of your libraries are not in
  30.                 /usr/local/lib, then this is a good
  31.                 option to use.
  32.     --with-NALIBS=dir    Look for the Numerical Analysis
  33.                 libraries in dir
  34.     --with-FLIBS=dir    Look for the f2c libraries in dir. If
  35.                 the f2c libraries are in the same
  36.                 place as the Numerical Analysis libs,
  37.                 then this option is unnecessary.
  38.  
  39.     --with-PLIBS=dir    Look for the PLPLOT library in dir.
  40.  
  41.     --with-includes=dir    Look for X-windows include files in
  42.                 dir.
  43.  
  44.     --with-libraries=dir    Look for X-windows libraries in dir.
  45.  
  46.     See the fortran notes below if you wish to link with Fortran
  47.     compiled subroutines.
  48.  
  49.    3.) Type `make'
  50.  
  51.     3.a) If you want to install rlab someplace other than
  52.     /usr/local, then type `make prefix=/usr/someplace/else' (if
  53.     you did not use the --prefix option with configure).
  54.  
  55.     3.b) Type `make Test'. This run rlab through some simple tests
  56.     to verify correct behavior.
  57.  
  58.    4.) Type `make -n install' and verify that the install process is to
  59.    your liking.
  60.  
  61.     4.a) If you want to install rlab someplace other than
  62.     /usr/local, then type `make prefix=/usr/someplace/else -n install'.
  63.     prefix should match whatever was used in step 3.a.
  64.  
  65.    5.) Type the make-command used in step 4 or 4a without the `-n'
  66.    option.
  67.  
  68.    6.) Enjoy ...
  69.  
  70.    7.) Send bug reports to ians@eskimo.com, or to the mailing list at
  71.    rlab-list@eskimo.com. If you want to subscribe to the mailing list
  72.    send mail to ians@eskimo.com.
  73.  
  74.    IN CASE OF EMERGENCY: If the make does not proceed through
  75.    installation without problems, then human intervention will be
  76.    required. The files created by configure (Makefile and config.h)
  77.    can be edited by hand, or Makefile.dist (cp to Makefile), and
  78.    config.h.dist (cp to config.h) can be edited to achieve a
  79.    compileable rlab. These files are supposed to have enough comments
  80.    to allow installers to figure out the correct options.
  81.  
  82.    See the file PROBLEMS for solutions to some commonly encountered
  83.    difficulties.
  84.  
  85.    Please send report(s) of any compilation or installation
  86.    difficulties to ians@eskimo.com. 
  87.  
  88.    ---------------------------------------------------------------
  89.  
  90.    NOTES:
  91.  
  92.    F2C LIBS:
  93.  
  94.    If you use the f2c translated numerical libraries, and you do not
  95.    use the f2c Fortran libraries, you will most likely have trouble
  96.    during the final link of the executable.  Unfortunately, most
  97.    vendors have been unable to refrain from gratuitously modifying
  98.    libF77.a, and libI77.a. To solve this problem get the f2c
  99.    distribution from netlib (netlib.att.com, in netlib/f2c), or from
  100.    prep.ai.mit.edu (in pub/gnu).
  101.  
  102.    FORTRAN:
  103.  
  104.    RLaB is used on many machines without a Fortran compiler. This is
  105.    made possible by the AT&T f2c project. However, some users have a
  106.    Fortran compiler, and even specially optimized versions of the BLAS
  107.    subroutines. If you wish to link with Fortran compiled (or vendor
  108.    supplied) libraries, you are on your own. I would like to make this
  109.    process simpler in the near future but, at the moment it is not
  110.    reccommended, unless you are knowledgeable about C - Fortran
  111.    interfaces. If you are knowedgeable about C - Fortran interfaces,
  112.    then you may wish to give it a try:
  113.  
  114.     0) Get and build ALL of the libraries with a Fortran compiler.
  115.        You will need the double precision version of fftpack (send
  116.        me mail if you don not have it). The remaining libraries
  117.        are available from netlib. 
  118.     1) Run configure
  119.     2) Edit the generated Makefile.
  120.         a) Comment out the rules for lp.o and bl.o
  121.         b) Uncomment the fule for .f.o
  122.         c) Set the value of F77
  123.         d) Edit the value of FLIBS. This is tougher than it
  124.                may seem at 1st. Each platform tends to be
  125.                different. If you are successfull, please send me
  126.                the FLIBS definition that works. I will keep a list
  127.                to make it easier on others in the future.
  128.         e) Set the value for FCONV
  129.     4) You may need to change the typedefs in fi.h to  suit your
  130.        particular Fortran compiler. Most Fortran compilers do not
  131.        use long ints (but f2c does).
  132.     3) Type make
  133.  
  134.     Some tested platforms...
  135.  
  136.     Sun, SunOS 5.3 (Solaris 2.3):
  137.         FLIBS = -L/opt/SUNWspro/SC3.0/lib -lF77 -lM77 -lsunmath
  138.         FCONV = -DUSE_F2C
  139.  
  140.     Sun SunOS 4.1.2
  141.         FLIBS = -L/usr/lang/SC1.0 -lF77
  142.         FCONV = -DUSE_F2C
  143.  
  144.     DEC-Ultrix-RISC:
  145.         FLIBS = -L. -lF77 -lI77 -lUfor -lfor -lutil \
  146.             -lots -L/usr/lib/cmplrs/fort -li_31
  147.         FCONV = -DUSE_F2C
  148.  
  149.     AIX v3.2:
  150.         FLIBS = -L. -lxlf -lxlfutil
  151.         FCONV = -DUSE_LOWER
  152.         You will need to make sure that -lc appears before any
  153.         numercial libs
  154.  
  155.     DEC-Alpha:
  156.         FLIBS = -L. -lfor -lUfor -lFutil -lots -lm -lc
  157.         FCONV = -DUSE_F2C
  158.  
  159.     Titan P3000:
  160.         FLIBS = -L. -lF77 -lI77 -lUmF77 -lubF77 -liF77
  161.         FCONV = -DUSE_UPPER
  162.  
  163.     Watch out for things like:
  164.  
  165.     a) Linking to Fortran versions of getenv(). On some machines
  166.     you may have to put -lc at the head of the library list.
  167.  
  168.    PLOTTING:
  169.  
  170.    A builtin plotting capability is in work. To make RLaB with the new
  171.    plotting functions you must have the PLPLOT library. PLPLOT is
  172.    freely available. You can get PLPLOT from dino.ph.utexas.edu in
  173.    plplot. If you have a double precision version of the PLPLOT
  174.    library configure may find it and turn on the plotting capability.
  175.    At present configure searches for libplplotdX.a and libplplotdtk.a.
  176.    If you have a PLPLOT library under some other name, then edit the
  177.    Makefile variable PLIBS and PLIB_DIR to reflect the correct
  178.    library, and then edit config.h so that HAVE_RLAB_PLPLOT is
  179.    defined. See the file plplot.r for more information on how to use
  180.    the plotting functions. Also take a look at examples/plot_test.r
  181.    for Plplot examples.
  182.  
  183.    As an alternative to PLPLOT RLaB can use its built-in piping and
  184.    file I/O capabilities to get data to most plot programs fairly
  185.    easy. There is a sample Rlab program in a file called
  186.    toolbox/gnu_plot.r that uses these capabilities to interactively
  187.    make plots by running GNUPLOT as a sub-process. To use this
  188.    function (plot()), you must have the GNUPLOT program somewhere in
  189.    your PATH.  If you don't have GNUPLOT, or wish to use some other
  190.    plotting program feel free to modify the plot() interface to suit
  191.    your needs.
  192.  
  193.    I recommend that you use GNUPLOT version 3.2 or higher. Versions
  194.    before 3.2 tend to break the input stream when an input error
  195.    occurs, thus making plotting intolerant of user errors.
  196.  
  197. -----------------------------------------------------------------------
  198.  
  199. This is a generic INSTALL file for utilities distributions.
  200. If this package does not come with, e.g., installable documentation or
  201. data files, please ignore the references to them below.
  202.  
  203. To compile this package:
  204.  
  205. 1.  Configure the package for your system.  In the directory that this
  206. file is in, type `./configure'.  If you're using `csh' on an old
  207. version of System V, you might need to type `sh configure' instead to
  208. prevent `csh' from trying to execute `configure' itself.
  209.  
  210. The `configure' shell script attempts to guess correct values for
  211. various system-dependent variables used during compilation, and
  212. creates the Makefile(s) (one in each subdirectory of the source
  213. directory).  In some packages it creates a C header file containing
  214. system-dependent definitions.  It also creates a file `config.status'
  215. that you can run in the future to recreate the current configuration.
  216.  
  217. Running `configure' takes a minute or two.  While it is running, it
  218. prints some messages that tell what it is doing.  If you don't want to
  219. see the messages, run `configure' with its standard output redirected
  220. to `/dev/null'; for example, `./configure >/dev/null'.
  221.  
  222. To compile the package in a different directory from the one
  223. containing the source code, you must use a version of `make' that
  224. supports the VPATH variable, such as GNU `make'.  `cd' to the directory
  225. where you want the object files and executables to go and run
  226. `configure'.  `configure' automatically checks for the source code in
  227. the directory that `configure' is in and in `..'.  If for some reason
  228. `configure' is not in the source code directory that you are
  229. configuring, then it will report that it can't find the source code.
  230. In that case, run `configure' with the option `--srcdir=DIR', where
  231. DIR is the directory that contains the source code.
  232.  
  233. By default, `make install' will install the package's files in
  234. /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify an
  235. installation prefix other than /usr/local by giving `configure' the option
  236. `--prefix=PATH'.  Alternately, you can do so by consistently giving a value
  237. for the `prefix' variable when you run `make', e.g.,
  238.     make prefix=/usr/gnu
  239.     make prefix=/usr/gnu install
  240.  
  241. You can specify separate installation prefixes for
  242. architecture-specific files and architecture-independent files.  If
  243. you give `configure' the option `--exec-prefix=PATH' or set the
  244. `make' variable `exec_prefix' to PATH, the package will use PATH as
  245. the prefix for installing programs and libraries.  Data files and
  246. documentation will still use the regular prefix.  Normally, all files
  247. are installed using the regular prefix.
  248.  
  249. Another `configure' option is useful mainly in `Makefile' rules for
  250. updating `config.status' and `Makefile'.  The `--no-create' option
  251. figures out the configuration for your system and records it in
  252. `config.status', without actually configuring the package (creating
  253. `Makefile's and perhaps a configuration header file).  Later, you can
  254. run `./config.status' to actually configure the package.  You can also
  255. give `config.status' the `--recheck' option, which makes it re-run
  256. `configure' with the same arguments you used before.  This option is
  257. useful if you change `configure'.
  258.  
  259. Some packages pay attention to `--with-PACKAGE' options to `configure',
  260. where PACKAGE is something like `gnu-libc' or `x' (for the X Window System).
  261. The README should mention any --with- options that the package recognizes.
  262.  
  263. `configure' ignores any other arguments that you give it.
  264.  
  265. If your system requires unusual options for compilation or linking
  266. that `configure' doesn't know about, you can give `configure' initial
  267. values for some variables by setting them in the environment.  In
  268. Bourne-compatible shells, you can do that on the command line like
  269. this:
  270.     CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
  271.  
  272. The `make' variables that you might want to override with environment
  273. variables when running `configure' are:
  274.  
  275. (For these variables, any value given in the environment overrides the
  276. value that `configure' would choose:)
  277. CC        C compiler program.
  278.         Default is `cc', or `gcc' if `gcc' is in your PATH.
  279. INSTALL        Program to use to install files.
  280.         Default is `install' if you have it, `cp' otherwise.
  281.  
  282. (For these variables, any value given in the environment is added to
  283. the value that `configure' chooses:)
  284. DEFS        Configuration options, in the form `-Dfoo -Dbar ...'
  285.         Do not use this variable in packages that create a
  286.         configuration header file.
  287. LIBS        Libraries to link with, in the form `-lfoo -lbar ...'
  288.  
  289. If you need to do unusual things to compile the package, we encourage
  290. you to figure out how `configure' could check whether to do them, and
  291. mail diffs or instructions to the address given in the README so we
  292. can include them in the next release.
  293.  
  294. 2.  Type `make' to compile the package.  If you want, you can override
  295. the `make' variables CFLAGS and LDFLAGS like this:
  296.  
  297.     make CFLAGS=-O2 LDFLAGS=-s
  298.  
  299. 3.  If the package comes with self-tests and you want to run them,
  300. type `make check'.  If you're not sure whether there are any, try it;
  301. if `make' responds with something like
  302.     make: *** No way to make target `check'.  Stop.
  303. then the package does not come with self-tests.
  304.  
  305. 4.  Type `make install' to install programs, data files, and
  306. documentation.
  307.  
  308. 5.  You can remove the program binaries and object files from the
  309. source directory by typing `make clean'.  To also remove the
  310. Makefile(s), the header file containing system-dependent definitions
  311. (if the package uses one), and `config.status' (all the files that
  312. `configure' created), type `make distclean'.
  313.  
  314. The file `configure.in' is used as a template to create `configure' by
  315. a program called `autoconf'.  You will only need it if you want to
  316. regenerate `configure' using a newer version of `autoconf'.
  317.